//
//  MMDetailHeadview.m
//  ZZLC
//
//  Created by 杨春至 on 2017/12/13.
//  Copyright © 2017年 ZhongZeng. All rights reserved.
//

#import "MMDetailHeadview.h"

@interface MMDetailHeadview ()
@property (weak, nonatomic) IBOutlet UILabel *profitLb;
@property (weak, nonatomic) IBOutlet UILabel *restLb;
@property (weak, nonatomic) IBOutlet UILabel *dayLb;
@property (weak, nonatomic) IBOutlet UILabel *startMoneyLb;

@end

@implementation MMDetailHeadview
- (void)setModel:(ProDetailModel *)model{
    _model = model;
    _profitLb.text = [NSString stringWithFormat:@"%ld%@",([_model.baseEarnings integerValue]+[_model.jiangLiEarnings integerValue]),@"%"];
    _restLb.text = [NSString stringWithFormat:@"%.2f",[_model.leftCopies floatValue]/10000];
    _dayLb.text = _model.lcqx;
    
    _startMoneyLb.text = [NSString stringWithFormat:@"%.2f",[_model.atleastMoney floatValue]/100];
}

@end
